package com.ruoyi.bath.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.bath.mapper.ManagerMapper;
import com.ruoyi.bath.domain.manager;
import com.ruoyi.bath.service.IManagerService;

/**
 * 经理信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2021-08-05
 */
@Service
public class ManagerServiceImpl implements IManagerService 
{
    @Autowired
    private ManagerMapper managerMapper;

    /**
     * 查询经理信息
     * 
     * @param managerId 经理信息主键
     * @return 经理信息
     */
    @Override
    public manager selectManagerBymanagerId(Integer managerId)
    {
        return managerMapper.selectManagerBymanagerId(managerId);
    }

    /**
     * 查询经理信息列表
     * 
     * @param manager 经理信息
     * @return 经理信息
     */
    @Override
    public List<manager> selectManagerList(manager manager)
    {
        return managerMapper.selectManagerList(manager);
    }

    /**
     * 新增经理信息
     * 
     * @param manager 经理信息
     * @return 结果
     */
    @Override
    public int insertManager(manager manager)
    {
        return managerMapper.insertManager(manager);
    }

    /**
     * 修改经理信息
     * 
     * @param manager 经理信息
     * @return 结果
     */
    @Override
    public int updateManager(manager manager)
    {
        return managerMapper.updateManager(manager);
    }

    /**
     * 批量删除经理信息
     * 
     * @param managerIds 需要删除的经理信息主键
     * @return 结果
     */
    @Override
    public int deleteManagerBymanagerIds(Integer[] managerIds)
    {
        return managerMapper.deleteManagerBymanagerIds(managerIds);
    }

    /**
     * 删除经理信息信息
     * 
     * @param managerId 经理信息主键
     * @return 结果
     */
    @Override
    public int deleteManagerBymanagerId(Integer managerId)
    {
        return managerMapper.deleteManagerByManagerId(managerId);
    }
}
